﻿
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[sproc_Linkman_AddCustomLinkmanType]') AND type in (N'P', N'PC'))
    DROP PROCEDURE [dbo].[sproc_Linkman_AddCustomLinkmanType];
GO
CREATE PROCEDURE [dbo].[sproc_Linkman_AddCustomLinkmanType]
@typeid     int,
@id        int
/*-----------------------------------------------------
功能：添加自定义联系人所在分类
参数：
    @typeid        所属分类id
    @id        联系人id
-------------------------------------------------------*/
AS
    INSERT INTO UDS_Linkman_TypeOfCustomLinkman(CustomLinkmanID,TypeID)
    VALUES(@ID,@typeid)

    RETURN(@@IDENTITY)